y_align: Clutter.ActorAlign.START,
});
this._sectionList.connectObject(
- 'actor-added', this._sync.bind(this),
- 'actor-removed', this._sync.bind(this),
+ 'child-added', this._sync.bind(this),
+ 'child-removed', this._sync.bind(this),
this);
this._scrollView.child = this._sectionList;
this._currentPage = 0;
this._currentMode = -1;
- this.connect('actor-added', this._childAdded.bind(this));
- this.connect('actor-removed', this._childRemoved.bind(this));
+ this.connect('child-added', this._childAdded.bind(this));
+ this.connect('child-removed', this._childRemoved.bind(this));
this.connect('destroy', () => layoutManager.disconnect(pagesChangedId));
}
}
container.connectObject(
- 'actor-added', this._actorAdded.bind(this),
- 'actor-removed', this._actorRemoved.bind(this), this);
+ 'child-added', this._childAdded.bind(this),
+ 'child-removed', this._childRemoved.bind(this), this);
this._highlighted = null;
}
return this._active;
}
- _actorAdded(container, newChild) {
+ _childAdded(container, newChild) {
let children = this._container.get_children();
let myIndex = children.indexOf(this);
let newChildIndex = children.indexOf(newChild);
}
}
- _actorRemoved(container, child) {
+ _childRemoved(container, child) {
let index = this._children.indexOf(child);
if (index !== -1) // paranoia
this._children.splice(index, 1);
return;
data.visible = true;
- data.actorAddedId = actor.connect('actor-added', (container, child) => {
+ data.actorAddedId = actor.connect('child-added', (container, child) => {
this._addActor(data.children, child);
});
- data.actorRemovedId = actor.connect('actor-removed', (container, child) => {
+ data.actorRemovedId = actor.connect('child-removed', (container, child) => {
this._removeActor(child);
});
});
this.add_child(this._list);
- this._list.connect('actor-added', this._sync.bind(this));
- this._list.connect('actor-removed', this._sync.bind(this));
+ this._list.connect('child-added', this._sync.bind(this));
+ this._list.connect('child-removed', this._sync.bind(this));
Main.sessionMode.connectObject(
'updated', () => this._sync(), this);